<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    
    {foreach name="attrLists" item="vo"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$vo.key_name}:</label>
        <div class="col-xs-12 col-sm-8">
            {foreach name="vo.list" item="vv"}
            <input name="row[attr_{$vo.key_id}]" type="radio" value="{$vo.key_id}:{$vv.id}">{$vv.value_name}
            {/foreach}
        </div>
    </div>
    {/foreach}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" min="0" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock" data-rule="required" min="0" class="form-control" name="row[stock]" type="number" value="1">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[product_id]" value="{$product_id}">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
